import request from '@/utils/request'

// 查询纠纷信息列列表
export function listDispute(query) {
  return request({
    url: '/business/dispute/list',
    method: 'get',
    params: query
  })
}


// 查询纠纷信息列列表
export function getJFPersonList(query) {
  return request({
    url: '/system/dept/gridman',
    method: 'get',
    params: query
  })
}

// 查询纠纷信息列详细
export function getDispute(id) {
  return request({
    url: '/business/dispute/' + id,
    method: 'get'
  })
}

// 新增纠纷信息列
export function addDispute(data) {
  return request({
    url: '/business/dispute',
    method: 'post',
    data: data
  })
}

// 修改纠纷信息列
export function updateDispute(data) {
  return request({
    url: '/business/dispute',
    method: 'put',
    data: data
  })
}

// 删除纠纷信息列
export function delDispute(id) {
  return request({
    url: '/business/dispute/' + id,
    method: 'delete'
  })
}

// 导出纠纷信息列
export function exportDispute(query) {
  return request({
    url: '/business/dispute/export',
    method: 'get',
    params: query
  })
}
